package com.yjd.pub.system.service;
import org.springframework.stereotype.Service;

import com.yjd.comm.base.dao.IBaseDao;
import com.yjd.comm.base.service.impl.BaseServiceImpl;
import com.yjd.comm.system.service.IpService;
import com.yjd.comm.util.StringUtil;
import com.yjd.pub.system.util.IpLocation;

@Service("ipService")
public class IpServiceImpl extends BaseServiceImpl implements IpService{

	@Override
	public String getIpLocation(String ip) throws Exception {
		String[] ipString=IpLocation.ip.find(ip);
		String result="";
		for(String t:ipString){
			if(StringUtil.isNotEmpty(t)){
				result+=t+" ";
			}
		}
		return result;
	}

	/* (non-Javadoc)
	 * @see com.yjd.comm.base.service.impl.TopBaseServiceImpl#getBaseDao()
	 */
	@Override
	public IBaseDao getBaseDao() {
		// TODO Auto-generated method stub
		return null;
	}


}
